﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="com.railway.common.constants.SysConstant"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
	<%
		String basePath = request.getScheme() + "://"
				+ request.getServerName() + ":" + request.getServerPort()
				+ request.getContextPath() + "/";
	%>
	<head id="Head1">
		<base href="<%=basePath%>">
		<title><%=SysConstant.ADMIN_SYS_TITLE%></title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" type="text/css" href="${ctx}/css/default.css" />
		<link rel="stylesheet" type="text/css"
			href="${ctx}/css/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css"
			href="${ctx}/css/themes/icon.css">
		<script type="text/javascript"
			src="${ctx}/scripts/jquery-1.4.2.min.js"></script>
		<script type="text/javascript"
			src="${ctx}/scripts/jquery.easyui.min.js"></script> 
		<script type="text/javascript" src='${ctx}/scripts/frame.js'> </script>
		

		<script type="text/javascript">
		
		  var confirm_go;
		
		  window.onbeforeunload = onbeforeunload_handler; 
		  window.onunload = onunload_handler; 
		  
		  function onbeforeunload_handler(){ 
		  
		  	var n = window.event.screenX - window.screenLeft;  
  		  	var b = n > document.documentElement.scrollWidth-20;  
  
          if(b && event.clientY < 0 || event.altKey){     
                  
                  var warning="确认退出?";   
                  confirm_go = true; 
			      return warning; 
			      
          }else if(event.clientY > document.body.clientHeight || event.altKey)  { //用户点击任务栏，右键关闭，是按alt+F4关闭    
       
                   var warning="确认退出?";    
                   confirm_go = true; 
			       return warning; 
      	  }  	  
			
   		}      
	     function onunload_handler(){ 
	       if( confirm_go ==true){
	          $.get("${ctx}/system/SysUser/logout.do?t="+Math.random(), {
                Action:"get",tt:"tt"}, function (data, textStatus){		 

             });		
          }
        } 
            $(document).ready(function(){   
                 InitLeftMenu(); 
	             tabClose();
	             tabCloseEven();
	             $('#editpass').click(function() {
	                  $('#w').window('open');
	             });
	
	             $('#btnEp').click(function() {
	                 serverLogin();
	             })
	           //  setInterval("showMsg()",5000); 
	 			$('#btnCancel').click(function(){closePwd();})
	            $('#loginOut').click(function() {
	                 $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {
	                     if (r) {
	                         location.href = '${ctx}/system/SysUser/logout.do';
	                     }
	                 });
	
	             })                  
            });          

  
            function openMsgWin(){        
           
            var url='${ctx}/msg/MsgRecive/list.do'; //要打开的窗口
			var winName="newWin"; //给打开的窗口命名

			// screen.availWidth 获得屏幕宽度
			// screen.availHeight 获得屏幕高度
			// 居中的算法是：
			// 左右居中： (屏幕宽度-窗口宽度)/2
			// 上下居中： (屏幕高度-窗口高度)/2

			var awidth=screen.availWidth/6*5;   //窗口宽度,需要设置
			var aheight=screen.availHeight/5*4;   //窗口高度,需要设置 
			var atop=(screen.availHeight - aheight)/2;    //窗口顶部位置,一般不需要改
			var aleft=(screen.availWidth - awidth)/2; //窗口放中央,一般不需要改
			var param0="scrollbars=0,status=0,menubar=0,resizable=2,location=0"; //新窗口的参数
			//新窗口的左部位置，顶部位置，宽度，高度 
    		var params="top=" + atop + ",left=" + aleft + ",width=" + awidth + ",height=" + aheight + "," + param0 ;
			win=window.open(url,winName,params); //打开新窗口
			win.focus(); //新窗口获得焦点             
            }
            
          //  function showMsg(){
            //  $.get("${ctx}/msg/MsgRecive/getMsgCount.do", {
             //   Action:"get",Name:"user01"}, function (data, textStatus){		 
             //   if(data == null) {
             //     return;
             //   }
             //   var objs = eval("["+data+"]");	                    
              //  if(objs[0].msgCount	 ==0 || objs[0].msgCount == undefined){        
             //      return;
             //   }
		     //   $.messager.anim('fade', 2000);
	        //	$.messager.show('<font color=red>提示</font>', '<font color=green style="font-size:14px;font-weight:bold;"><a href="javascript:openMsgWin();">您有'+objs[0].msgCount+'条新的消息</a></font>');
            //	});		
          //  }
            
         function okEvent(){
		      alert('ok被点击');
	     }    	
    	 
        //关闭登录窗口
        function closePwd() {
            $('#w').window('close');
        }
        //修改密码
        function serverLogin() {
            var $newpass = $('#txtNewPass');
            var $rePass = $('#txtRePass');

            if ($newpass.val() == '') {
                msgShow('系统提示', '请输入密码！', 'warning');
                return false;
            }
            if ($rePass.val() == '') {
                msgShow('系统提示', '请在一次输入密码！', 'warning');
                return false;
            }

            if ($newpass.val() != $rePass.val()) {
                msgShow('系统提示', '两次密码不一至！请重新输入', 'warning');
                return false;
            }

            $.post('/ajax/editpassword.ashx?newpass=' + $newpass.val(), function(msg) {
                msgShow('系统提示', '恭喜，密码修改成功！<br>您的新密码为：' + msg, 'info');
                $newpass.val('');
                $rePass.val('');
                close();
            })            
        }
    </script>
		<script>
	$(function(){
		//树形控件功能
		$('#tt').tree({
			checkbox: false,
			url: '${ctx}/system/SysUser/getFuncList.do?param=json',
			onClick:function(node){
					var url = node.attributes['url'];
					addTab(node.text,"${ctx}"+url)
					$(this).tree('toggle', node.target);
			}			
		});		
		//角色datagrid 的加载 --初始化加载一次，后续不需要重新获得数据
		$('#roleDataGrid').datagrid({
				title:'角色',
				iconCls:'icon-role',
				width:580,//首次进入时候的长度，下面有resize重新设置了。
				height:300,
				nowrap: true,
				striped: true,//间变
				collapsible:true,//折叠按钮
				url:'${ctx}/system/role/TsysRole/listAjax.do',
				sortName: 'code',
				sortOrder: 'desc',
				remoteSort: false,
				idField:'id',
				frozenColumns:[[//冻结列
	                {field:'ck',checkbox:true},
	                {title:'角色名称',field:'roleName',width:150,sortable:true}//可排序
				]],
				columns:[[
					{title:'状态',field:'deleted',width:50,sortable:true,
						formatter:function(a,rec){
							if (a == 0){
							    return '<span style="color:red;">删除</span>';
							} else {
							    return "正常";
							}
						}
					},
					{title:'备注',field:'memo',width:250}
				]],
				toolbar:[{
					id:'btnsave',
					text:'提交',
					disabled:false,
					iconCls:'icon-save',
					handler:function(){
						var selected = $('#roleDataGrid').datagrid('getSelected');
						var ids = [];
						var rows = $('#roleDataGrid').datagrid('getSelections');
						for(var i=0;i<rows.length;i++){
							ids.push(rows[i].id);
						}
						//alert(ids.join(':'));
						
						$('#btnsave').linkbutton('disable');
						var node = $('#tt').tree('getSelected');
						if(node.iconCls=="icon-user"){//节点是用户
							$("input[name='objType']").val(0);
						}else if(node.iconCls=="icon-dept"){//节点是部门
							$("input[name='objType']").val(1);
						}else if(node.iconCls=="icon-post"){//节点是岗位--目前没有岗位的角色
							$("input[name='objType']").val(2);
						}else{
							alert("分配角色失败，没有相关的对象类型！");
							return;
						}
						//关联表的授权对象ID就是tree 的node节点ID。。。
						$("input[name='objId']").val(node.id);
						$("input[name='roleId']").val(ids.join(':'));
						$('#roleForm').attr("action","${ctx }/system/role/TsysRoleAssign/save.do");
						$('#roleForm').submit();
					}
				}]
			});

		//提交表单Ajax操作
		$('#deptForm').form({
			 onSubmit:function(){
	     	   if( $(this).form('validate')){
		     	   //校验成功，把按钮失效
	     			$('#submit1').linkbutton({disabled: true});
	     			return true;
	     	   }else
		     	   return false;
	    	},
			success:function(data){
				if(data==1)	$('#tt').tree('reload');
			}
		});
		$('#userForm').form({
			 onSubmit:function(){
	     	   if( $(this).form('validate')){
		     	   //校验成功，把按钮失效
	     			$('#submit2').linkbutton({disabled: true});
	     			return true;
	     	   }else{
		     	   return false;
		        }
	    	},
			success:function(data){
				if(data==1)$('#tt').tree('reload');
			}
		});
		
		$('#postForm').form({
			 onSubmit:function(){
	     	   if( $(this).form('validate')){
		     	   //校验成功，把按钮失效
	     			$('#submit3').linkbutton({disabled: true});
	     			return true;
	     	   }else
		     	   return false;
	    	},
			success:function(data){
				if(data==1)$('#tt').tree('reload');
			}
		});
		$('#roleForm').form({
			 onSubmit:function(){
	     	   if( $(this).form('validate')){
		     	   //校验成功，把按钮失效
	     			return true;
	     	   }else
		     	   return false;
	    	},
			success:function(data){
				if(data==1)$('#tt').tree('reload');
			}
		});
		
		//右键菜单功能 
		$(document).bind('contextmenu',function(e){
			$('#mm').menu('show', {
				left: e.pageX,
				top: e.pageY
			});
			return false;
		});

		$('#submit1').linkbutton({disabled: true});
		$('#submit2').linkbutton({disabled: true});
		$('#submit3').linkbutton({disabled: true});
		//$('#deptDiv').hide();
		$('#userDiv').hide();
		$('#postDiv').hide();
		$('#roleDiv').hide();
		$("#dept_deptCode").attr("readonly","readonly");
	});
	//删除菜单
	function delete1(){
		var node = $('#tt').tree('getSelected');
		//alert(node.iconCls);
		
		if(node==null){
			alert("请先选择结点");
			return;
		}
		
		if(node.id==-1)alert("不能删除顶级菜单");
		//判断所选的结点是部门还是岗位还是用户
		
		else{
			var messtr = '你确定要执行删除操作吗？';
			if(node.iconCls=="icon-dept"){//节点是部门
				messtr="删除部门会删除部门下的人员和部门，你确定要继续操作吗？";
			}
			
			$.messager.confirm('确认', messtr , function(r){
				if (r){
					if(node.iconCls=="icon-user"){//节点是用户
				
						$.ajax({ url: "${ctx}/system/user/TsysUser/deletebyid.do?id="+node.id, context: document.body, success: function(){
						$.messager.alert('删除操作','删除成功!');
						}});
						
					}else if(node.iconCls=="icon-dept"){//节点是部门
						
						$.ajax({ url: "${ctx}/system/dept/TsysDept/deletebyid.do?id="+node.id, context: document.body, success: function(){
						$.messager.alert('删除操作','删除成功!');
						}});
					}else if(node.iconCls=="icon-post"){//节点是岗位
						
						$.ajax({ url: "${ctx}/system/post/TsysPost/deletebyid.do?id="+node.id, context: document.body, success: function(){
						$.messager.alert('删除操作','删除成功!');
						}});
					}
					
					//把父结点重新展开一下，解决checkbox显示不准确bug
					var parent=$('#tt').tree('getParent',node.target);
					$('#tt').tree('remove', node.target);
					$('#tt').tree('expand',parent.target);
					$('#tt').tree('reload');
				}
			});
			
			
		
			
			
			
		}
	}
	//编辑菜单 
	function edit(){
		var node = $('#tt').tree('getSelected');
		
		if(node==null){
			alert("请先选择结点");
			return;
		}
		
		
		if(node.id==-1)alert("不能修改顶级菜单");
		//判断所选的结点是部门还是岗位还是用户
		
		
		
		else{
			//alert(node.iconCls);
			if(node.iconCls=="icon-user"){//节点是用户
				$("#deptDiv").hide();
				$("#userDiv").show();
				$('#postDiv').hide();
				$('#roleDiv').hide();
				
				$("#userForm").form("load",{
					id : node.id,
					deptId : node.attributes['deptId'],
					deleted : node.attributes['deleted'],
					userName : node.attributes['userName'],
					userPwd : node.attributes['userPwd'],
					cardType : node.attributes['cardType'],
					cardId : node.attributes['cardId'],
					company : node.attributes['company'],
					userNo : node.attributes['userNo'],
					companyAdd : node.attributes['companyAdd'],
					birthday : node.attributes['birthday'],
					email : node.attributes['email'],
					phone : node.attributes['phone'],
					mobile : node.attributes['mobile'],
					familyAddr : node.attributes['familyAddr'],
					sex : node.attributes['sex'],
					fax : node.attributes['fax'],
					creator : node.attributes['creator'],
					createTime : node.attributes['createTime'],
					userStatus : node.attributes['userStatus'],
					memo : node.attributes['memo']
				});
				
				
				//动态改变form 的提交路径。。此为增加方法
				//document.getElementById("userForm").action="${ctx}/orgn/OrgUser/update.do";
				$('#userForm').attr("action","${ctx}/system/user/TsysUser/update.do");
				
				$('#submit2').linkbutton({disabled:false});
			}else if(node.iconCls=="icon-dept"){//节点是部门
				$("#userDiv").hide();
				$("#deptDiv").show();
				$('#postDiv').hide();
				$('#roleDiv').hide();
				
				//alert(node.attributes['deleted']);
				
				$("#dept_id").val(node.id);
				$("#dept_companyId").val(node.attributes['companyId']);
				$("#dept_parentDeptid").val(node.attributes['parentDeptid']);
				$("#dept_deleted").val(node.attributes['deleted']);
				$("#dept_deptName").val(node.attributes['deptName']);
				$("#dept_deptEmail").val(node.attributes['deptEmail']);
				$("#dept_deptFax").val(node.attributes['deptFax']);
				$("#dept_deptManager").val(node.attributes['deptManager']);
				$("#dept_deptPhone").val(node.attributes['deptPhone']);
				$("#dept_orderCode").val(node.attributes['orderCode']);
				$("#dept_regionFlag").val(node.attributes['regionFlag']);
				$("#dept_deptCode").val(node.attributes['deptCode']);
				$("#dept_memo").val(node.attributes['memo']);
				$("#dept_creator").val(node.attributes['creator']);
				$("#dept_createTime").val(node.attributes['createDateString']);
				
				
				//动态改变form 的提交路径。。此为修改方法
				//document.getElementById("deptForm").action="${ctx }/OrgDepartment/update.do";
				$('#deptForm').attr("action","${ctx}/system/dept/TsysDept/update.do");
				$('#submit1').linkbutton({disabled:false});
			}else if(node.iconCls=="icon-post"){//节点是岗位
				$("#userDiv").hide();
				$("#deptDiv").hide();
				$('#postDiv').show();
				$('#roleDiv').hide();
				//alert(node.id+"-------"+node.attributes['deptId']);
				
				
				$("input[name='postId']").val(node.id);
				$("input[name='deptId']").val(node.attributes['deptId']);
				$("input[name='postName']").val(node.attributes['postName']);
				$("input[name='postOrder']").val(node.attributes['postOrder']);
				$("input[name='postDesc']").val(node.attributes['postDesc']);
				
				//动态改变form 的提交路径。。此为修改方法
				//document.getElementById("deptForm").action="${ctx }/OrgDepartment/update.do";
				$('#postForm').attr("action","${ctx}/system/post/TsysPost/update.do");
				$('#submit3').linkbutton({disabled:false});
			}
			
		}
	}

	//增加部门
	function addDept(){
		
		var node = $('#tt').tree('getSelected');
		if(node==null){
			alert("请先选择结点");
			return;
		}
		var children = $('#tt').tree('getChildren',node.target);
		
		if(node.iconCls=="icon-user"){//节点是用户
			$.messager.alert("增加操作","不能在用户下增加部门！");
			return ;
		}
		if(node.iconCls=="icon-post"){//节点是岗位
			$.messager.alert("增加操作","不能在岗位下增加部门！");
			return ;
		}
		
		$("#userDiv").hide();
		$("#deptDiv").show();
		$('#postDiv').hide();
		$('#roleDiv').hide();
		
		//alert(node.id+"-----"+node.attributes['deptCode']);
		
		$.ajax({ url: "${ctx}/system/dept/TsysDept/getCode.do?id="+node.id+"&deptCode="+node.attributes['deptCode'], context: document.body, success: function(msg){
			//$.messager.alert('增加部门',msg);
			if(msg=="false"){
				$.messager.alert('',"生成编码失败");
				return;
			}else{
				$("#dept_id").val("");
				$("#dept_companyId").val("-1");
				$("#dept_parentDeptid").val(node.id);
				$("#dept_deleted").val(0);
				$("#dept_deptName").val("");
				$("#dept_deptEmail").val("");
				$("#dept_deptFax").val("");
				$("#dept_deptManager").val("");
				$("#dept_deptPhone").val("");
				$("#dept_orderCode").val("");
				$("#dept_regionFlag").val("");
				$("#dept_deptCode").val(msg);
				
				$("#dept_memo").val("");
				$("#dept_creator").val("");
				$("#dept_createTime").val("");
				
				//动态改变form 的提交路径。。此为增加方法
				//document.getElementById("deptForm").action="${ctx }/orgn/OrgDepartment/save.do";
				$('#deptForm').attr("action","${ctx}/system/dept/TsysDept/save.do");
				$('#submit1').linkbutton({disabled:false});
			}
		}});
		
		
	}

	//增加用户
	function addUser(){
		
		var node = $('#tt').tree('getSelected');
		if(node==null){
			alert("请先选择结点");
			return;
		}
		
		if(node.iconCls=="icon-user"){//节点是用户
			$.messager.alert("增加操作","不能在用户下增加用户！");
			return ;
		}
		
		$("#deptDiv").hide();
		$("#userDiv").show();
		$('#postDiv').hide();
		$('#roleDiv').hide();
		
		var children = $('#tt').tree('getChildren',node.target);
		
		$("#userForm").form("load",{
			id:"",
			deptId:node.id,
			deleted:"0",
			userName:"",
			userPwd:"",
			cardType:"",
			cardId:"",
			company:"",
			userNo:"",
			companyAdd:"",
			birthday:"",
			email:"",
			phone:"",
			mobile:"",
			familyAddr:"",
			sex:"",
			fax:"",
			creator:"",
			createTime:"",
			userStatus:"",
			memo:""
		});
		
		//动态改变form 的提交路径。。此为增加方法
		//document.getElementById("userForm").action="${ctx}/orgn/OrgUser/save.do";
		$('#userForm').attr("action","${ctx}/system/user/TsysUser/save.do");
		$('#submit2').linkbutton({disabled:false});
	}
	
	//增加岗位
	function addPost(){
		
		var node = $('#tt').tree('getSelected');
		if(node==null){
			alert("请先选择结点");
			return;
		}
		
		if(node.iconCls=="icon-user"){//节点是用户
			$.messager.alert("增加操作","不能在用户下增加岗位！");
			return ;
		}
		if(node.iconCls=="icon-post"){//节点是岗位
			$.messager.alert("增加操作","不能在岗位下增加岗位！");
			return ;
		}
		
		$("#deptDiv").hide();
		$("#userDiv").hide();
		$('#postDiv').show();
		$('#roleDiv').hide();
		
		var children = $('#tt').tree('getChildren',node.target);
		$("input[name='deptId']").val(node.id);
		$("input[name='postId']").val("");
		$("input[name='postName']").val("");
		$("input[name='postOrder']").val(children.length+1);
		$("input[name='postDesc']").val("");
		
		//动态改变form 的提交路径。。此为增加方法
		//document.getElementById("userForm").action="${ctx}/orgn/OrgUser/save.do";
		$('#postForm').attr("action","${ctx}/system/post/TsysPost/save.do");
		$('#submit3').linkbutton({disabled:false});
	}
	
	//分配角色
	function addRole(){
		
		
		var node = $('#tt').tree('getSelected');
		//alert(node.iconCls);
		
		if(node==null){
			alert("请先选择结点");
			return;
		}
		if(node.id==-1){
			alert("不能给顶级菜单分配角色");
			return ;
		}
		
		$("#deptDiv").hide();
		$("#userDiv").hide();
		$('#postDiv').hide();
		$('#roleDiv').show();
		$('#roleDataGrid').datagrid('resize', {
				width:580,
				height:300
			});
		
		
		$('#roleDataGrid').datagrid('clearSelections');//清空选择项
		var tsstr = node.attributes['tsysRoleAssign'];
		for (var v=0;v<tsstr.split(":").length;v++){
			$('#roleDataGrid').datagrid('selectRecord',tsstr.split(":")[v]);//重新默认选择
		}
		
		
		$('#btnsave').linkbutton({disabled: false});
	}
	
	
</script>
		<!-- added by mayunbo end -->
	</head>
	<body class="easyui-layout" style="overflow-y: hidden" scroll="no">
		<noscript>
			<div
				style="position: absolute; z-index: 100000; height: 2046px; top: 0px; left: 0px; width: 100%; background: white; text-align: center;">
				<img src="images/noscript.gif" alt='抱歉，请开启脚本支持！' />
			</div>
		</noscript>
		<div region="north" split="true" border="false"
			style="border: 0px none; margin: 0px; padding: 0px; overflow: hidden; height: 56px; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; width: 1272px; background: url(images/banner_bg.jpg) repeat-x left top;">
			<div style="float: left; width: 211px;">
				<!-- img src="" width="207" height="54"   -->
			</div>
			<span
				style="border: 0px none; margin: 0px; padding: 10px 20px 0px 0px; float: right;">
				<a href="/index.jsp"
				style="background: url('images/first_ico.jpg') no-repeat left top; padding-left: 22px; height: 24px; line-height: 22px; float: right; margin-left: 10px; cursor: pointer;">返回首页</a>
				<a id="loginOut"
				style="background: url('images/loginOut.gif') no-repeat left top; padding-left: 22px; height: 24px; line-height: 22px; float: right; margin-left: 10px; cursor: pointer;">安全退出</a>
				<a id="editpass"
				style="background: url('images/editpass.gif') no-repeat left top; padding-left: 22px; height: 20px; display: block; line-height: 22px; float: right; cursor: pointer;">修改密码</a>
			</span>

		</div>
		<div region="south" split="true" border="true"
			style="height: 30px; background: #D2E0F2;">
			<div class="footer">
				<%=SysConstant.SYS_NAME%>
			</div>
		</div>
		<div region="west" split="true" title="导航菜单" style="width: 180px;"
			id="west">
			<div id="tt"></div>
			<!--		<div class="easyui-accordion" fit="true" border="false">-->
			<!--			<c:forEach items="${menuList}" var = "n">-->
			<!--				 <div title="${n['menuname']}"  icon="${n['icon']}" style="overflow:auto;" >-->
			<!--					<ul>-->
			<!--					<c:forEach items = "${n['menus']}" var="o" >-->
			<!--						<li>-->
			<!--							<div><a target="mainFrame" href="${o['url']}" >-->
			<!--							<span class="icon ${o['icon']}" ></span>${o['menuname']}</a></div>-->
			<!--						</li>-->
			<!--					</c:forEach>-->
			<!--					</ul>-->
			<!--				</div>-->
			<!--			</c:forEach>-->
			<!--		</div>-->
		</div>
		<div id="mainPanle" region="center"
			style="background: #eee; overflow-y: hidden">
			<div id="tabs" class="easyui-tabs" fit="true" border="false">
				<div title="欢迎使用" style="padding: 20px; overflow: hidden;" id="home">

					<h1>
						<%=SysConstant.SYS_NAME%>
					</h1>

				</div>
			</div>
		</div>
          <!--修改密码窗口--> 
          <div id="w" closed="true" class="easyui-window" title="修改密码" collapsible="false"
			minimizable="false" maximizable="false" icon="icon-save"
			style="width: 300px; height: 150px; padding: 5px; background: #fafafa;"
			 >
			<div class="easyui-layout" fit="true" >
				<div region="center" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
					<table cellpadding=3>
						<tr>
							<td>
								新密码：
							</td>
							<td>
								<input id="txtNewPass" type="password" class="txt01" />
							</td>
						</tr>
						<tr>
							<td>
								确认密码：
							</td>
							<td>
								<input id="txtRePass" type="password" class="txt01" />
							</td>
						</tr>
					</table>
				</div>
				<div region="south" border="false"
					style="text-align: right; height: 30px; line-height: 30px;">
					<a id="btnEp" class="easyui-linkbutton" icon="icon-ok"
						href="javascript:void(0)"> 确定</a>
					<a id="btnCancel" class="easyui-linkbutton" icon="icon-cancel"
						href="javascript:void(0)">取消</a>
				</div>
			</div> 
		</div> 
		<div style="display:none">
		

		<div id="mm" class="easyui-menu" style="width: 150px;">
			<div id="mm-tabclose">
				关闭
			</div>
			<div id="mm-tabcloseall">
				全部关闭
			</div>
			<div id="mm-tabcloseother">
				除此之外全部关闭
			</div>
			<div class="menu-sep"></div>
			<div id="mm-tabcloseright">
				当前页右侧全部关闭
			</div>
			<div id="mm-tabcloseleft">
				当前页左侧全部关闭
			</div>
			<div class="menu-sep"></div>
			<div id="mm-exit">
				退出
			</div>
		</div>
      </div>

	</body>
</html>